home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Auto Destruct Objects
- Sent: 6/27/96 9:41 AM
- Received: 6/27/96 9:54 AM
- From: Mary Boetcher, mary_boetcher@quickmail.apple.com
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Mail*Link® SMTP RE>Auto Destruct Objects
-
- >what happens when an auto destruct
- >object such as FW_CString255 is a member of another class and the string
- >object is allocated as part of the class (i.e. FW_CString255 fText)?
-
- The string object will be destroyed automatically when the class destructor is called.
-
- You can also allocate and destroy the string yourself (FW_CString255* fText). In this case you must call delete in the destructor.
- fText = FW_NEW(FW_CString255, ()); // create the string
-
- Mary Boetcher
- ODF Person
-